package com.blockmeta.bbs.minemodule.adapter;

import androidx.annotation.Nullable;

import com.blockmeta.bbs.baselibrary.base.adapter.BaseAdapter;
import com.blockmeta.bbs.businesslibrary.pojo.ContactUSPOJO;
import com.blockmeta.bbs.minemodule.R;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by author on 2018/4/9.
 */

public class ContactUsAdapter extends BaseAdapter<ContactUSPOJO.ConnectusBean, BaseViewHolder> {
    public ContactUsAdapter(int layoutResId, @Nullable List<ContactUSPOJO.ConnectusBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ContactUSPOJO.ConnectusBean item) {
//        helper.setText(R.mPostName.item_tv1, item.getTitle());
//        TextView view = helper.getView(R.mPostName.item_tv2);
        helper.setText(R.id.item_tv1,item.getKey());
        helper.setText(R.id.item_tv2,item.getValue());
    }
}
